import bb.cascades 1.3

Page {
    property variant item
    onItemChanged: {
        m_body.url = item.link.url
        console.log(item.link.url)
    }
    
    ScrollView {
        leftMargin: 10.0
        rightMargin: 10.0
        
        WebView {
            id: m_body
            verticalAlignment: VerticalAlignment.Fill
            horizontalAlignment: HorizontalAlignment.Fill
            implicitLayoutAnimationsEnabled: false
            settings.credentialAutoFillEnabled: true
            settings.formAutoFillEnabled: true
            settings.activeTextEnabled: false
            settings.viewport: {
                "width": "device-width",
                "initial-scale": 1.0
            }
            settings.userStyleSheetLocation: "asset:///controls/DocView.css"
        }
    }
}
